package com.erp.sys.pojo;


import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


@Data
@AllArgsConstructor
@Accessors(chain = true)
@TableName(value = "sys_user")
public class User implements Serializable {

    //@TableField(exist=false)
    //private static final long serialVersionUID=1L;

//    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private String loginname;

    private String address;

    private Integer sex;

    private String remark;

    private String pwd;

    private Integer deptid;

    private Date hiredate;

    private Integer mgr;

    private Integer available;

    private Integer ordernum;

    /**
     * 用户类型[0超级管理员1，管理员，2普通用户]
     */
    private Integer type;

    /**
     * 头像地址
     */
    private String imgpath;

    private String salt;


    /**
     * 领导名称
     */
   // @TableField(exist=false)
   // private String leadername;
    /**
     * 部门名称
     */
   // @TableField(exist=false)
   // private String deptname;



}
